<template>
    <el-dialog v-model="dialogTableVisible" title="商品关联列表">
        <!-- <el-table :data="gridData">
            <el-table-column property="date" label="Date" width="150" />
            <el-table-column property="name" label="Name" width="200" />
            <el-table-column property="address" label="Address" />
        </el-table> -->
    </el-dialog>
</template>
<script setup lang='ts'>
import { ref , reactive , onMounted} from 'vue'
import { goodsListApi } from '@/api/goods'
const dialogTableVisible = ref(false)

defineProps({
})

const openHandler = async() => {
    dialogTableVisible.value = true
    const res = await goodsListApi(10,'all')
    console.log(res);
}
const closeHandler = () => dialogTableVisible.value = false


defineExpose({
    openHandler,
    closeHandler
})
onMounted(async()=>{
    
})
</script>
<style scoped lang='scss'></style>